package com.lyf.lottery.model.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;

import java.math.BigDecimal;

/**
 * OptActivityBlindBox添加VO
 * @author lyf
 **/
@Data
@ApiModel(description = "_request")
public class OptActivityBlindBoxAddVo {



	@ApiModelProperty("活动id")
    private Integer activityId;

	@ApiModelProperty("奖品类别")
    private Integer prizeType;

	@Length(max= 255,message="奖品名称长度不能超过255")
	@ApiModelProperty("奖品名称")
    private String prizeContent;

	@ApiModelProperty("奖品数量")
    private Integer prizeCount;

	@Length(max= 255,message="奖品图片地址长度不能超过255")
	@ApiModelProperty("奖品图片地址")
    private String prizeUrl;

	@ApiModelProperty("个人中奖上限")
    private Integer obtainLimit;
	@ApiModelProperty("中奖概率")
	@Range(min=0,max=1,message = "中奖概率在{min}到{max}之间")
	private BigDecimal probability;

}



